package com.kun.kunkunmall.auth.feign;

import com.kun.common.utils.R;
import com.kun.kunkunmall.auth.vo.GiteeUserVo;
import com.kun.kunkunmall.auth.vo.UserLoginVo;
import com.kun.kunkunmall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("kunkunmall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo registerVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo loginVo);

    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody GiteeUserVo giteeUserVo);
}
